using System;
using System.Collections.Generic;
using System.Text;

namespace Coriander.Google.Charting
{
    /// <summary>
    /// 
    /// </summary>
    public struct ChartType
    {
        public static readonly ChartType BarVertical   = new ChartType("Bar vertical"           , "bvg");
        public static readonly ChartType BarHorizontal = new ChartType("Bar horiziontal"        , "bhg");
        public static readonly ChartType Line          = new ChartType("Line"                   , "lc");
        public static readonly ChartType Pie           = new ChartType("Pie"                    , "p");
        public static readonly ChartType Pie3D         = new ChartType("Three-dimensional pie"  , "p3");
        public static readonly ChartType Venn          = new ChartType("Venn"                   , "v");

        readonly String value;

        readonly String name;

        /// <summary>
        /// The name
        /// </summary>
        public String Name
        {
            get { return name; }
        } 

        /// <summary>
        /// The value
        /// </summary>
        public String Value
        {
            get { return this.value; }
        }

        /// <summary>
        /// ctor : String, String
        /// </summary>
        /// <param name="name"></param>
        /// <param name="value"></param>
        public ChartType(String name, String value)
        {
            this.name  = name;
            this.value = value;
        }
    }
}
